define(()=>{
    return function (){
        let userMsg = sessionStorage.getItem("userMsg") ? JSON.parse(sessionStorage.getItem("userMsg")) : {};
        if(userMsg.user && userMsg.pass){
            $(".login").children(".user").html(userMsg.user);
            $(".login").children(".user").off("click.a");
            $(".login").children(".user").on("click.b",function(){
                location.href = "../personal/index.html";
            })
        }
    }
})